﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Galaxy_Wars
{
    class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// 
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new NewGame());
        }

        public static void startGame(string name, int amountofplanets,int dayProduction,int turnduration,string ip, string gameType)
        {
            GameGui form = new GameGui(name, amountofplanets, dayProduction, turnduration, ip, gameType);
            form.ShowDialog();
            form.Enabled = false;
        }

        public static void startJoinGame(string name, string ip, string type) {
            GameGui form = new GameGui(name, ip, type);
            form.ShowDialog();
        }
    }
}
